<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */
$db['shopscore_line']=array (
  'columns' =>
  array (  
    'id' =>
    array (
      'type' => 'int(10)',
      'required' => true,
      'pkey' => true,
      'extra' => 'auto_increment',
      'editable' => false,
      'label' => 'ID',
      'comment' => app::get('ome')->_('ID'),
    ),
    'shopscore_id' =>
    array (
      'type' => 'table:shopscore@finance',
      'editable' => false,
      'in_list' => true,
      'default_in_list' =>true,
      'label' => '单头',
      'searchtype' =>'has',
      'comment' => app::get('ome')->_('单头'),
    ),
    'score' =>
    array (
      'type' => 'number',
      'comment' => '积分',
      'label' => '积分',
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'total_amount' =>
    array (
      'type' => 'money',
      'comment' => '订单总额',
      'label' => '订单总额',
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'axorderno' =>
    array (
      'type' => 'varchar(30)',
      'comment' => 'AX订单号',
      'label' => 'AX订单号',
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'axshipno' =>
    array (
      'type' => 'varchar(30)',
      'comment' => 'AX发货号',
      'label' => 'AX发货号',
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'order_bn' =>
    array (
      'type' => 'varchar(30)',
      'comment' => '订单号',
      'label' => '订单号',
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'AXCustomer' =>
    array (
      'type' => 'varchar(30)',
      'comment' => '客户',
      'label' => '客户',
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'customername' =>
    array (
      'type' => 'varchar(50)',
      'comment' => '客户名称',
      'label' => '客户名称',
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'last_modify' =>
    array (
      'type' => 'last_modify',
      'comment' => '修改时间',
      'label' => '修改时间',
      'in_list' => true,
      'default_in_list' =>true,
    ),
  ),
  'index' =>
     array (
         'ind_id' =>
         array (
             'columns' =>
             array (
                 0 => 'id',
             ),
         ),
   ),
  'comment' => app::get('ome')->_('抵扣积分行'),
);
